import { requestMock } from "./index";

requestMock.interceptors.request.use((config) => {
  return config;
});

requestMock.interceptors.response.use(
  (response) => {
    return response.data.data;
  },
  (err) => {
    return Promise.reject(err);
  }
);

export default requestMock;
